/*    */ package tfhka;
/*    */ 
/*    */ public class S2PrinterData
/*    */ {
/*    */   private double subTotalBases;
/*    */   private double sudTotalTax;
/*    */   private String dataDummy;
/*    */   private double amountPayable;
/*    */   private int numberPaymentsMade;
/*    */   private int condition;
/*    */ 
/*    */   public S2PrinterData(String trama)
/*    */   {
/* 28 */     if ((trama != null) && (trama.length() == 69))
/*    */     {
/* 30 */       double valor = Double.parseDouble(trama.substring(3, 14)) + Double.parseDouble(trama.substring(14, 16)) / 100.0D;
/* 31 */       setSubTotalBases(valor);
/* 32 */       valor = Double.parseDouble(trama.substring(17, 28)) + Double.parseDouble(trama.substring(28, 30)) / 100.0D;
/* 33 */       setSudTotalTax(valor);
/* 34 */       setDataDummy(trama.substring(31, 50));
/* 35 */       valor = Double.parseDouble(trama.substring(51, 62)) + Double.parseDouble(trama.substring(62, 64)) / 100.0D;
/* 36 */       setAmountPayable(valor);
/* 37 */       setNumberPaymentsMade(Integer.parseInt(trama.substring(64, 68)));
/* 38 */       setCondition(Integer.parseInt(trama.substring(68, 69)));
/*    */     }
/*    */   }
/*    */ 
/*    */   public double getSubTotalBases() {
/* 43 */     return this.subTotalBases;
/*    */   }
/*    */ 
/*    */   public double getSudTotalTax() {
/* 47 */     return this.sudTotalTax;
/*    */   }
/*    */ 
/*    */   public String getDataDummy() {
/* 51 */     return this.dataDummy;
/*    */   }
/*    */ 
/*    */   public double getAmountPayable() {
/* 55 */     return this.amountPayable;
/*    */   }
/*    */ 
/*    */   public int getNumberPaymentsMade() {
/* 59 */     return this.numberPaymentsMade;
/*    */   }
/*    */ 
/*    */   public int getCondition() {
/* 63 */     return this.condition;
/*    */   }
/*    */ 
/*    */   private void setSubTotalBases(double subTotalBases) {
/* 67 */     this.subTotalBases = subTotalBases;
/*    */   }
/*    */ 
/*    */   private void setSudTotalTax(double sudTotalTax) {
/* 71 */     this.sudTotalTax = sudTotalTax;
/*    */   }
/*    */ 
/*    */   private void setDataDummy(String dataDummy) {
/* 75 */     this.dataDummy = dataDummy;
/*    */   }
/*    */ 
/*    */   private void setAmountPayable(double amountPayable) {
/* 79 */     this.amountPayable = amountPayable;
/*    */   }
/*    */ 
/*    */   private void setNumberPaymentsMade(int numberPaymentsMade) {
/* 83 */     this.numberPaymentsMade = numberPaymentsMade;
/*    */   }
/*    */ 
/*    */   private void setCondition(int condition) {
/* 87 */     this.condition = condition;
/*    */   }
/*    */ }

/* Location:           C:\Users\javaOne\Documents\TfhkaJava.jar
 * Qualified Name:     tfhka.S2PrinterData
 * JD-Core Version:    0.6.2
 */